import Vue from 'vue'
import Vuex from 'vuex';

Vue.use(Vuex);

let state = {
  authsData:null,
};

const getters = {
  watchAuthsData(state) {
    return state.authsData;
  }
};

const mutations = {
  upAuthsData(state, data) {
    state.authsData = data;
  }
};

const actions = {
  updateAuthsData(context, data) {
    context.commit('upAuthsData', data);
  }
};

const store = new Vuex.Store({
  state,
  getters,
  mutations,
  actions
});

export default store;
